package online.yangcloud.common.properties;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * @author zhuboyang
 * @since 2023年12月06 11:08:12
 */
@Component
@ConfigurationProperties(prefix = "database")
public class DataProperty {

    /**
     * 是否在启动时执行 SQL
     */
    private Boolean enableExecuteSqlInRun = Boolean.FALSE;

    public Boolean getEnableExecuteSqlInRun() {
        return enableExecuteSqlInRun;
    }

    public void setEnableExecuteSqlInRun(Boolean enableExecuteSqlInRun) {
        this.enableExecuteSqlInRun = enableExecuteSqlInRun;
    }

    @Override
    public String toString() {
        return "DatabaseProperty["
                + " enableExecuteSqlInRun=" + enableExecuteSqlInRun
                + " ]";
    }
}
